/*          FILE: common.h
 *      Language: C
 *        Author: <Qiwei Feng> <Pufan He> <Yichao Zhou>
 *       Created: 2012-02-26
 * Last Modified: 2012-03-01
 *   Description:
 *       License: GNU GPL v3
 */

#ifndef __C_H_COMMON
#define __C_H_COMMON

#include <assert.h>
#include <errno.h>
#include <ctype.h>
#include <limits.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>

#ifdef HAVE_STDBOOL_H
# include <stdbool.h>
#else
# ifndef HAVE__BOOL
#  ifdef __cplusplus
typedef bool _Bool;
#  else
#   define _Bool signed char
#  endif
# endif
# define bool _Bool
# define false 0
# define true 1
# define __bool_true_false_are_defined 1
#endif

#define NORMAL false
#define ERROR true
typedef error_t bool;

#endif


/* vim: set ft=c ts=8 sts=8 sw=8 tw=79 ff=unix et : */
